<form action="<|URL>/registration/" method="post" id="registration_form">
    <table style="border-collapse: collapse;">
        <tr class="reg_tr">
            <td>
                <label for="firstname">First Name:</label>
            </td>
            <td>
                <input type="text" id="firstname" name="firstname"/>
            </td>
        </tr>
        <tr class="reg_tr">
            <td>
                <label for="lastname">Last Name:</label>
            </td>
            <td>
                <input type="text" id="lastname" name="lastname"/>
            </td>
        </tr>
        <tr class="reg_tr">
            <td>
                <label for="username">Username: *</label>
            </td>
            <td>
                <input type="text" id="username" name="username"/>
            </td>
        </tr>
        <tr class="reg_tr">
            <td>
                <label for="password">Password: *</label>
            </td>
            <td>
                <input type="password" id="password" name="password"/>
            </td>
        </tr>
        <tr class="reg_tr">
            <td>
                <label for="password_repeat">Repeat Password: *</label>
            </td>
            <td>
                <input type="password" id="password_repeat" name="password_repeat"/>
            </td>
        </tr>
        <tr style="border-bottom: 1px dotted #AAAAAA; height: 40px;" valign="top">
            <td>
                <label for="mail">E-mail: *</label>
            </td>
            <td>
                <input type="text" id="mail" name="mail"/>
            </td>
        </tr>

        <tr class="reg_tr">
            <td>
                <input type="checkbox" id="all" name="all">
                <label for="all">Suscribe all</label>
            </td>
            <td></td>
        </tr>
        <tr class="reg_tr">
            <td><input type="checkbox" id="hotel" name="hotel"> <label for="hotel">hotel</label></td>
            <td><input type="checkbox" id="motel" name="motel"> <label for="all">Suscribe all</label></td>
        </tr>
        <tr class="reg_tr">
            <td><input type="checkbox" id="restaurants" name="restaurants"> <label for="all">restaurants</label></td>
            <td><input type="checkbox" id="weadinghalls" name="weadinghalls"> <label for="all">weading halls</label></td>
        </tr>
        <tr>
            <td></td>
            <td>
                <input type="submit" id="register" value="Register">
            </td>
        </tr>
    </table>
</form>
<script type="text/javascript">
    $('#all').click(function() {
        $("input[type='checkbox']").attr('checked', $('#all').is(':checked'));
        $("input[type='checkbox']").attr('unchecked', $('#all').is(':unchecked'));
    });
    $('#register').hover(function() {
                $(this).css("background-color", "#bfea13");
            },
            function() {
                $(this).css("background-color", "#d2f05d");
            });
    $('#register').click(function() {
        document.location = "#";
    });
    $('#registration_form').ajaxForm({
        beforeSubmit: function(){

        },
        success: function(response){
            alert(response);
        }
    });
</script>